package com.ado.abyss.core.service;

import java.util.List;

import com.ado.abyss.core.dal.model.SysMenu;

/**
 * 
 * @author adoanis
 * @date 2020/05/20
 * @description 菜单业务处理层
 *
 */
public interface SysMenuService {

	/**
	 * 
	 * @param name
	 * @return
	 */
	List<SysMenu> findByUser(String name);
	
	/**
	 * 
	 * @param userName
	 * @param menuType
	 * @return
	 */
	List<SysMenu> findTree(String userName, int menuType) ;
	
	/**
	 * 
	 * @param sysMenu
	 * @return
	 */
	boolean delete(SysMenu sysMenu) ; 
	
	/**
	 * 
	 * @param sysMenus
	 * @return
	 */
	boolean deleteBatch(List<SysMenu> sysMenus) ;

	/**
	 * 
	 * @param record
	 * @return
	 */
	boolean save(SysMenu record);

}
